﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Customers>" %>





<%@ Import Namespace="CRM.AuthorizedActionLink.Extensions" %>

<% Html.DevExpress().PageControl(settings =>
                                       {
                                           settings.Name = "pcConditions";
                                           settings.TabPages.Add(CRM.Resourses.Resourses.TransportConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerTransportConditionsEdit", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.CreditConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerCreditConditionsEdit", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.PriceConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerPriceConditionsPartialEdit", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.Bonuses).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerBonusPartialEdit", "Contracts", new { customerId = Model.IdCustomer }));
                                       }).GetHtml();%>

